-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow specifying a super template for async_track_template_result #58477
Conversation
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( |
Hey there @PhracturedBlue, @tetienne, @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( |
What changed the behavior that this is an issue now? |
The change is that many template functions and filters now log warnings when the input is not valid, and as suggested in the linked issue #57287, it's reasonable that they don't when the availability template doesn't render |
homeassistant/helpers/event.py
Outdated
if master_result is not None and master_result is not True: | ||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this check into the if statemenet when you assign master_result
Availability is set to |
Proposed change
Allow specifying a super template for
async_track_template_result
The super template suppresses rendering of other templates if it doesn't render as
True
.The driver is to use this for template entities to block rendering of other templates when the availability template does not render as
True
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: